package com.flymobi.wap;

import com.flymobi.fw.modules.SM;
import com.flymobi.fw.modules.cache.CacheNeedsRefreshException;
import com.flymobi.po.Pindao;
import com.flymobi.util.WebContext;

public class PindaoAction extends WapAction {
	private static final long serialVersionUID = 1L;
	public String webProcess(WebContext context) {
		Pindao pindao=null;
		try {
			pindao = (Pindao)SM.CacheOscache.getFromCache("pindao", id, 30*60);
		} catch (CacheNeedsRefreshException e) {
			pindao=SM.PindaoService.get(id);
			SM.CacheOscache.putInCache("pindao", id,  pindao);
		}
		context.put("pindao", pindao);
		return "pindao";
	}
}
